package com.partsoft.dits.log;

import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;

/**
 * 日志附件
 */
public interface LogAttachment extends Serializable, Cloneable {
	
	static final String LOG_EXCEPTION = "log_exception";
	
	static final String LOG_MESSAGE = "log_content";
	
	static final String LOG_BYTES ="log_bytes";
	
	/**
	 * 附件名称
	 */
	String getName();

	/**
	 * 获得附件流
	 * @return
	 */
	InputStream getInputStream() throws IOException;
	
	
	/**
	 * 获得附件字节数组
	 */
	byte[] getBytes() throws IOException;
	
	
	LogAttachment clone();
		
}
